﻿<?php if(!isset($_SESSION)) @session_start();?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<link href="css/style.css" type="text/css" rel="stylesheet">
<link href="css/myStyle.css" type="text/css" rel="stylesheet">
<link href="css/facebook div styles.css" rel="stylesheet" type="text/css" />
<link href="css/list.css" rel="stylesheet" type="text/css" />
<link href="css/mystyle.css" rel="stylesheet" type="text/css" />

<link href="css/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/faceplant.css" media="screen" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.watermarkinput.js"></script>

<script src="js/gameLoad.js" type="text/javascript"></script>
<script src="js/facebox.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="js/behavior.js"></script>
<script type="text/javascript" language="javascript" src="js/rating.js"></script>
<link rel="stylesheet" type="text/css" href="css/rating.css" />

<script type="text/javascript">
function test()
{
//	$.facebox.close();
jQuery.facebox({div:'#newGameList'},'test');
}

</script>



<?php
require('_config-rating.php'); // get the db connection info
$pic=$_GET["user_pic"];
$userid=$_GET["userid"];

$gameid= $_GET["gameid"];
$gm= $_GET["game"];

mysql_query("SET NAMES 'utf8'");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
}


$sql = "SELECT * FROM games WHERE gameId =$gameid ";
$rs_result = mysql_query($sql,$con);
if($rs_result){
	if ($row = mysql_fetch_array($rs_result)) { 
		$gameName=$row["gameName"];
		$gameDesc=$row["gameDesc"];
		$picUrl=$row["picUrl"];
		$url=$row["gameUrl"];
		$gameName=$row["gameName"];
		$path=$row["picUrl"];
		$gId=$row["gameId"];
	}
}
mysql_close($con);

?>
</head>
<body>
<div id="header" style="margin-top:-23px;">
	<?php include("header.php");?>
</div>

<div id="contentArea">
    <?php include("leftSideMenu.html");?>
	<div style="width:830px;float:left">
	<?php include("playContent.php");?>
	</div>
</div>
<div><?php include("footer.php");?></div>
</body>
</html>